home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
tpcase.zip
/
TPCASE.DOC
< prev
next >
Wrap
Text File
|
1993-01-04
|
2KB
|
55 lines
TPCASE
A Case Conversion Utility for Text Files
Written in Turbo Pascal (5.5)
----------------------------------------------------------------
(c) 1990 Peter W Gallagher
TPCASE is a simple utility which translates (ASCII) text
files from lower case to UPPER TPCASE, or back to lower case. To
start it up, enter TPCASE at the DOS prompt: a help screen will
give you all of the information you need.
This program is larger (at 26k) than others of the kind.
But it is QUICK and FRIENDLY. For example, an error will not
cause TPCASE to dump you back to the prompt in sullen silence.
Most times, TPCASE gives you a hint about how to fix the problem.
If you access TPCASE by shelling out of a large word processor
which grabs most of the available RAM, you will appreciate
TPCASE's dynamic allocation of buffer space for its file
operations.
TPCASE is also a little smarter than most similar programs.
When converting to lower case it recognises the end of a sentence
and knows that the next sentence should begin with an UPPERCASE
letter. It won't recognise all those other words which should
begin with a capital letter - such as the names of places and
people - but then it won't write your documents for you either.
The code for TPCASE.PAS is included in this suite of
programs. It is fully commented; you may like to play around
with it, adding features that you would find useful.
The key routines in TPCASE.PAS are written in Turbo Pascal
Inline code - which explains why the program runs so quickly. I
am grateful to L. David Baldwin for his INLINE Assembler which
can be found in the Borland Forum Libraries. Those more at home
with Assembler than I am could probably improve on my code.
The windowing routines are in Panes.TPU. You will see
fairly readily from the TPCASE code the arguments needed to
access these routines. Or you could use your own window
routines. Or no windows, if size is a consideration.
I am happy to donate TPCASE to the Public Domain. I hope
you find it useful.
PETER GALLAGHER (70142,1544)
Brussels, July 1990.